package br.com.gaacorp.sai.webapp.action;

import java.io.Serializable;
import java.util.List;

import br.com.gaacorp.sai.webapp.action.BasePage;
import br.com.gaacorp.sai.model.SchoolClass;
import br.com.gaacorp.sai.service.GenericManager;

public class SchoolClassList extends BasePage implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -5401103603304415082L;
	private GenericManager<SchoolClass, Long> schoolClassManager;

    public void setSchoolClassManager(GenericManager<SchoolClass, Long> schoolClassManager) {
        this.schoolClassManager = schoolClassManager;
    }

    public SchoolClassList() {
        setSortColumn("schoolClassId"); // sets the default sort column
    }

    public List getSchoolClasses() {
        return sort(schoolClassManager.getAll());
    }
}

